/*
 * XMLEntity.cpp
 *
 *  Created on: 16 mars 2011
 *      Author: bmaillot
 */

#include "XMLEntity.h"
#include "XMLElement.h"
#include <string>

using namespace std;

XMLEntity::XMLEntity(std::string nodeName): XMLElement(nodeName) {

}

std::string XMLEntity::toString()
{
	//Début du tag
	string R = "<!" + this->nodeName;
    
	//Ajout des attributs
	R += attributesToString();
	
	//Fin
	R += ">";

	return R;
}
